package com.usian.controller;

import com.usian.article.ApArticleContentControllerApi;
import com.usian.article.ApArticleControllerApi;
import com.usian.model.article.pojos.ApArticle;
import com.usian.model.article.pojos.ApArticleContent;
import com.usian.service.ApArticleContentService;
import com.usian.service.ApArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/articleContent")
public class ApArticleContentController implements ApArticleContentControllerApi {

    @Autowired
    private ApArticleContentService apArticleContentService;


    @PostMapping("/save")
    @Override
    public ApArticleContent saveApArticleContent(@RequestBody ApArticleContent articleContent) {
        return apArticleContentService.saveApArticleContent(articleContent);
    }
}
